﻿using UnityEngine;
using System.Collections;

public class MenuWindow : Window {
	
	
	static MenuWindow instance; 
	
	protected override void Awake ()
	{
		base.Awake ();
		instance = this;
	}
	
	public static MenuWindow GetInstance()
	{
		return instance;
	}
	
	void OnGUI()
	{
		if(GUILayout.Button(" Open Window "))
			Open(true);
		
		if(GUILayout.Button(" Close "))
			Close(true);
	}
}
